// import { http } from '../http'
import { http } from '../https'
import type { loginUser, profile, getUser, getProfile } from './userType'
/* 用户相关 */
// 登录
export function userLogin(data: loginUser) {
  return http<profile>({ url: '/api/user/login', data })
}
// 获取用户信息
export function getUser(data: getUser) {
  return http<getProfile>({ url: '/api/user/find', data })
}
